﻿using Microsoft.Practices.Prism.ViewModel;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.Text;

namespace FridgeManagerApp
{
    [DataContract]
    public class WReplenishmentNote : NotificationObject
    {
        private int replenishmentUID;
        private int officeUID;
        private int deviceUID;
        private String dominoUID;
        private int personnelUID;
        private int status;
        private String createTime;

        [DataMember(Order = 0)]
        public int ReplenishmentUID
        {
            get
            {
                return replenishmentUID;
            }
            set
            {
                replenishmentUID = value;
                RaisePropertyChanged("ReplenishmentUID");
            }
        }

        [DataMember(Order = 1)]
        public int OfficeUID
        {
            get
            {
                return officeUID;
            }
            set
            {
                officeUID = value;
                RaisePropertyChanged("OfficeUID");
            }
        }

        [DataMember(Order = 2)]
        public int DeviceUID
        {
            get
            {
                return deviceUID;
            }
            set
            {
                deviceUID = value;
                RaisePropertyChanged("DeviceUID");
            }
        }

        [DataMember(Order = 3)]
        public String DominoUID
        {
            get
            {
                return dominoUID;
            }
            set
            {
                dominoUID = value;
                RaisePropertyChanged("DominoUID");
            }
        }

        [DataMember(Order = 4)]
        public int PersonnelUID
        {
            get
            {
                return personnelUID;
            }
            set
            {
                personnelUID = value;
                RaisePropertyChanged("PersonnelUID");
            }
        }

        [DataMember(Order = 5)]
        public int Status
        {
            get
            {
                return status;
            }
            set
            {
                status = value;
                RaisePropertyChanged("Status");
            }
        }

        [DataMember(Order = 6)]
        public String CreateTime
        {
            get
            {
                return createTime;
            }
            set
            {
                createTime = value;
                RaisePropertyChanged("CreateTime");
            }
        }

        public WReplenishmentNote()
        {
            ReplenishmentUID = -1;
            OfficeUID = -1;
            DeviceUID = -1;
            DominoUID = "";
            PersonnelUID = -1;
            Status = -1;
            CreateTime = "";
    }

        public WReplenishmentNote(LReplenishmentNote p)
        {
            ReplenishmentUID = p.ReplenishmentUID;
            OfficeUID = p.OfficeUID;
            DeviceUID = p.DeviceUID;
            DominoUID = p.DominoUID;
            PersonnelUID = p.PersonnelUID;
            Status = p.Status;
            CreateTime = p.CreateTime;
        }
    }
}
